//package com.zscat.mallplus.center.controller;
//
//import java.util.List;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.zdb.framework.aspectj.lang.annotation.Log;
//import com.zdb.framework.aspectj.lang.enums.BusinessType;
//import com.zscat.mallplus.center.domain.CenterRegisterItem;
//import com.zscat.mallplus.center.service.ICenterRegisterItemService;
//import com.zdb.framework.web.controller.BaseController;
//import com.zdb.framework.web.domain.AjaxResult;
//import com.zdb.common.utils.poi.ExcelUtil;
//import com.zdb.framework.web.page.TableDataInfo;
//
///**
// * 签到明细Controller
// * 
// * @author Wsen
// * @date 2020-09-26
// */
//@RestController
//@RequestMapping("/center/register")
//public class CenterRegisterItemController extends BaseController
//{
//    @Autowired
//    private ICenterRegisterItemService centerRegisterItemService;
//
//    /**
//     * 查询签到明细列表
//     */
//    @PreAuthorize("@ss.hasPermi('center:register:list')")
//    @GetMapping("/register/list")
//    public TableDataInfo list(CenterRegisterItem centerRegisterItem)
//    {
//        startPage();
//        List<CenterRegisterItem> list = centerRegisterItemService.selectCenterRegisterItemList(centerRegisterItem);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出签到明细列表
//     */
//    @PreAuthorize("@ss.hasPermi('center:register:export')")
//    @Log(title = "签到明细", businessType = BusinessType.EXPORT)
//    @GetMapping("/export")
//    public AjaxResult export(CenterRegisterItem centerRegisterItem)
//    {
//        List<CenterRegisterItem> list = centerRegisterItemService.selectCenterRegisterItemList(centerRegisterItem);
//        ExcelUtil<CenterRegisterItem> util = new ExcelUtil<CenterRegisterItem>(CenterRegisterItem.class);
//        return util.exportExcel(list, "register");
//    }
//
//    /**
//     * 获取签到明细详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('center:register:query')")
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Long id)
//    {
//        return AjaxResult.success(centerRegisterItemService.selectCenterRegisterItemById(id));
//    }
//
//    /**
//     * 新增签到明细
//     */
//    @PreAuthorize("@ss.hasPermi('center:register:add')")
//    @Log(title = "签到明细", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody CenterRegisterItem centerRegisterItem)
//    {
//        return toAjax(centerRegisterItemService.insertCenterRegisterItem(centerRegisterItem));
//    }
//
//    /**
//     * 修改签到明细
//     */
//    @PreAuthorize("@ss.hasPermi('center:register:edit')")
//    @Log(title = "签到明细", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody CenterRegisterItem centerRegisterItem)
//    {
//        return toAjax(centerRegisterItemService.updateCenterRegisterItem(centerRegisterItem));
//    }
//
//    /**
//     * 删除签到明细
//     */
//    @PreAuthorize("@ss.hasPermi('center:register:remove')")
//    @Log(title = "签到明细", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{ids}")
//    public AjaxResult remove(@PathVariable Long[] ids)
//    {
//        return toAjax(centerRegisterItemService.deleteCenterRegisterItemByIds(ids));
//    }
//}
